From: Marco Trevisan (TreviƱo) Date: Mon, 25 Aug 2025 12:25:49 +0000 (+0200) Subject: gdm/authPrompt: Unset the entry reference on destruction X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~88^2~9^2^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=328ba639803c7d12f700c6dc45ece996f91bb042;p=gnome-shell.git gdm/authPrompt: Unset the entry reference on destruction We use the internal entry as the reference to the text entry that is currently in use, but during destruction we do not unset it, thus the garbage collector may requires further cycles to actually release it. Simplify its job here, improves 572d011894c9b490b8a17ad7db6adec335fbb017 Part-of: (cherry picked from commit 7c2dda6765432acb2f6eaccab74789d01f30af05) --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 32a36c960..8dcbfe300 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -134,6 +134,7 @@ export const AuthPrompt = GObject.registerClass({ this._inactiveEntry = null; this._userVerifier.destroy(); this._userVerifier = null; + this._entry = null; } on_key_press_event(event) {